@extends('model/admin')

@section('title','添加子分类')

@section('content')
	<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span>添加子分类</span>
                    </div>
                    <div class="mws-panel-body no-padding">
                    	<form class="mws-form" action="/admin/type/create" method='post'>
                    		<div class="mws-form-block">
                    			<div class="mws-form-row">
                    				<label class="mws-form-label">添加子类名称</label>
                    				<div class="mws-form-item">
                    					<input class="small" type="text" name='name'>
                    				</div>
                    			</div>
                    			{{csrf_field()}}
                    			<input type="hidden" name='pid' value="{{$res['id']}}">
                    			<input type="hidden" name='path' value="{{$res['path']}}">
                    		<div class="mws-button-row">
                    			<input value="添加子类" class="btn btn-danger" type="submit">
                    			<input value="重新填写" class="btn " type="reset">
                    		</div>
                    	</form>
                    </div>
                </div>
@endsection